/**
 * 
 */
package com.lanswon.qzsmk.base;

/**
 * 黑名单常量
 * @author sun
 *
 */
public class BlackListContants {
	
	
	// ==============================================================黑名单来源=======================================================================
	
	/**
	 * 黑名单来源-全部
	 */
	public final static String BL_SOURCE_ALL= "99";
	
	
	
	// ==============================================================黑名单-发布系统列表=======================================================================
	/**
	 * 黑名单-发布系统列表-全部（银行系统）
	 */
	public final static String BL_PUBLISHING_SYSTEM_LIST_ALl= "00";
	
	/**
	 * 黑名单-发布系统列表-柜面系统
	 */
	public final static String BL_PUBLISHING_SYSTEM_LIST_COUNTERSYS = "01";
	
	/**
	 * 黑名单-发布系统列表-园林系统
	 */
	public final static String BL_PUBLISHING_SYSTEM_LIST_GARDENSYS = "02";
	
	/**
	 * 黑名单-发布系统列表-系统
	 */
	public final static String BL_PUBLISHING_SYSTEM_LIST_SYS = "03";
	
	
	// ==============================================================黑名单-置黑方式=======================================================================

	/**
	 * 黑名单-置黑方式-系统
	 */
	public final static String BL_BLACK_MODE_SYSTEM = "0";
	
	/**
	 * 黑名单-置黑方式-手工
	 */
	public final static String BLACK_MODE_MANUAL = "1";
	
	// ==============================================================黑名单状态=======================================================================
	/**
	 * 黑名单状态-生效
	 */
	public final static String BL_CUR_STATUS_TAKE_EFFECT = "1";
	
	/**
	 * 黑名单状态-解除
	 */
	public final static String BL_CUR_STATUS_Relieve = "2";
	
	
	
	// ==============================================================解除黑名单原因=======================================================================
	/**
	 * 解除黑名单原因-柜台解挂
	 */
	public final static String BL_RE_REASON_COUNTER_HANGING = "01";
	
	/**
	 * 解除黑名单原因-自动解挂
	 */
	public final static String BL_RE_REASON_AUTOMATIC_HANG_UP= "02";
	
	/**
	 * 解除黑名单原因-应用解锁
	 */
	public final static String BL_RE_REASON_APP_UNLOCKING = "21";
	
	/**
	 * 解除黑名单原因-手工解除
	 */
	public final static String BL_RE_REASON_MANUAL_RELEASE = "31";
	
	// ==============================================================进黑名单原因=======================================================================
	/**
	 * 进黑名单原因-口头挂失
	 */
	public final static String BL_REASON_ORAL_LOSS = "01";
	
	/**
	 * 进黑名单原因-应用锁定
	 */
	public final static String BL_REASON_APP_LOCKING = "21";
	
	/**
	 * 进黑名单原因-手工生成
	 */
	public final static String BL_REASON_MANUAL_GENERATION = "31";
	
	/**
	 * 进黑名单原因-正式挂失 
	 */
	public final static String BL_REASON_OFFICIAL_LOSS = "02";
	
	/**
	 * 进黑名单原因-换卡注销
	 */
	public final static String BL_REASON_CHANGE_CARD_CANCELLATION = "11";
	
	/**
	 * 进黑名单原因-退卡注销
	 */
	public final static String BL_REASON_BACK_CARD_CANCELLATION = "12";
	
	/**
	 * 进黑名单原因-补卡注销
	 */
	public final static String BL_REASON_SUPPLEMENT_CARD_CANCELLATION = "13";
	
	
	/**
	 * 查询置黑发布系统代码对应的中文状态
	 * @param code
	 * @return
	 */
	public static String getBlacPublishingSystem(String code){
		String name="";
		switch (code) {
		case "00":
			name="银行系统";
			break;
		case "01":
			name="柜面系统";
			break;
		case "02":
			name="园林系统";
			break;
		case "03":
			name="系统";
			break;
		default:
			break;
		}
		return name;
	}
	
	/**
	 * 查询置黑方式代码对应的中文状态
	 * @param code
	 * @return
	 */
	public static String getBlacMode(String code){
		String name="";
		switch (code) {
		case "0":
			name="系统";
			break;
		case "1":
			name="手工";
			break;
		default:
			break;
		}
		return name;
	}
	
	/**
	 * 查询黑名单状态代码对应的中文状态
	 * @param code
	 * @return
	 */
	public static String getBlackStatus(String code){
		String name="";
		switch (code) {
		case "1":
			name="生效";
			break;
		case "2":
			name="解除";
			break;
		default:
			break;
		}
		return name;
	}
	
	/**
	 * 查询进黑名单原因代码对应的中文原因
	 * @param code
	 * @return
	 */
	public static String getBlackReason(String code){
		String name="";
				
		switch (code) {
		case "01":
			name="口头挂失";
			break;
		case "02":
			name="正式挂失";
			break;
		case "21":
			name="应用锁定";
			break;
		case "31":
			name="手工生成";
			break;
			
		case "11":
			name="换卡注销";
			break;
		case "12":
			name="退卡注销";
			break;
		case "13":
			name="补卡注销";
			break;
		
		default:
			name="无拉黑原因";
			break;
		}
		return name;
	}
}
